/*
 * Copyright (c) 2021, Texas Instruments Incorporated
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * *  Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * *  Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * *  Neither the name of Texas Instruments Incorporated nor the names of
 *    its contributors may be used to endorse or promote products derived
 *    from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include "eeprom_data.h"
#include <stdint.h>

#if TPS92912X
#ifdef A_VERSION
struct eepromField eeprom[EEPROM_REGS] = {{0x80, 0x3F}, {0x81, 0x3F},
    {0x82, 0x3F}, {0x83, 0x3F}, {0x84, 0x3F}, {0x85, 0x3F}, {0x86, 0x3F},
    {0x87, 0x3F}, {0x88, 0x3F}, {0x89, 0x3F}, {0x8A, 0x3F}, {0x8B, 0x3F},
    {0xA0, 0xFF}, {0xA1, 0xFF}, {0xA2, 0xFF}, {0xA3, 0xFF}, {0xA4, 0xFF},
    {0xA5, 0xFF}, {0xA6, 0xFF}, {0xA7, 0xFF}, {0xA8, 0xFF}, {0xA9, 0xFF},
    {0xAA, 0xFF}, {0xAB, 0xFF}, {0xC0, 0x0}, {0xC1, 0x0}, {0xC2, 0xFF},
    {0xC3, 0xF}, {0xC4, 0xFF}, {0xC5, 0xF}, {0xC6, 0x08}, {0xC7, 0xA7},
    {0xC8, 0x3}, {0xC9, 0x0}, {0xCA, 0x0}, {0xCB, 0x0}, {0xCC, 0x0},
    {0xCD, 0x0}, {0xCE, 0x0}, {0xCF, 0x09}};
#else
struct eepromField eeprom[EEPROM_REGS] = {{0x80, 0x3F}, {0x81, 0x3F},
    {0x82, 0x3F}, {0x83, 0x3F}, {0x84, 0x3F}, {0x85, 0x3F}, {0x86, 0x3F},
    {0x87, 0x3F}, {0x88, 0x3F}, {0x89, 0x3F}, {0x8A, 0x3F}, {0x8B, 0x3F},
    {0xA0, 0xFF}, {0xA1, 0xFF}, {0xA2, 0xFF}, {0xA3, 0xFF}, {0xA4, 0xFF},
    {0xA5, 0xFF}, {0xA6, 0xFF}, {0xA7, 0xFF}, {0xA8, 0xFF}, {0xA9, 0xFF},
    {0xAA, 0xFF}, {0xAB, 0xFF}, {0xC0, 0x0}, {0xC1, 0x0}, {0xC2, 0xFF},
    {0xC3, 0xF}, {0xC4, 0xFF}, {0xC5, 0xF}, {0xC6, 0x0}, {0xC7, 0xA7},
    {0xC8, 0x3}, {0xC9, 0x0}, {0xCA, 0x0}, {0xCB, 0x0}, {0xCC, 0x0},
    {0xCD, 0x0}, {0xCE, 0x0}, {0xCF, 0xB3}};
#endif
#else
struct eepromField eeprom[EEPROM_REGS] = {{0x00, 0xFF}};
#endif
